import { firstUpper } from '@ui/utils/win/firstUpper';
import { router } from '.';
export let sysName: string
export function addRoute(path: string, component: any) {
  const name = path.split('/').filter(it => it).map((it) => firstUpper(it, true)).join('')
  router.addRoute({
    path,
    name,
    component
  })
}

export function setSysName(v: string) {
  sysName = v
}